package com.zj.common.expand

import android.text.TextUtils
import com.zj.common.utils.DebugUtils
import java.util.regex.Pattern

fun String.isPhone(): Boolean {
    return !TextUtils.isEmpty(this) && Pattern.matches(
        "^1(3[0-9]|4[0-9]|5[0-9]|6[0-9]|7[0-9]|8[0-9]|9[0-9])\\d{8}$",
        this
    )
}

fun String.logInfo() {
    DebugUtils.printfLog(this)
}

fun String.logError() {
    DebugUtils.printfError(this)
}

